//
//  FCIntroduceViewController.m
//  FengShuiCompass
//
//  Created by 张德广 on 2019/3/14.
//  Copyright © 2019 compass. All rights reserved.
//

#import "FCIntroduceViewController.h"

@interface FCIntroduceViewController ()


@property (nonatomic, strong) UIView *topView;
@property (nonatomic, strong) UIImageView *bgImageView;

@property (nonatomic, strong) UIImageView *imageViewOne;
@property (nonatomic, strong) UIImageView *imageViewTwo;

@property (nonatomic, strong) UILabel *labelOne;
@property (nonatomic, strong) UILabel *labelTwo;
@property (nonatomic, strong) UILabel *labelThree;

@end

@implementation FCIntroduceViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    
    [self.view addSubview:self.bgImageView];
    [self.view addSubview:self.imageViewOne];
    [self.view addSubview:self.labelOne];
    [self.view addSubview:self.imageViewTwo];
    [self.view addSubview:self.labelTwo];
    [self.view addSubview:self.labelThree];
    
    [self settingNavigationController];
}

#pragma mark --------- 导航栏
-(void)settingNavigationController{
    
    self.title = NSLocalizedString(@"Instructions", nil);
    self.navigationController.navigationBar.tintColor = FCColorInRGB(0x000000);
}


#pragma mark ---------------------------------- 懒加载
- (UIImageView *)bgImageView {
    if (!_bgImageView) {
        _bgImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, FC_SCREEN_WIDTH, FC_SCREEN_HEIGHT)];
        _bgImageView.image = [UIImage imageNamed:@"bgView"];
        _bgImageView.userInteractionEnabled = YES;
    }
    return _bgImageView;
}

- (UILabel *)labelOne {
    if (!_labelOne) {
        _labelOne = [[UILabel alloc] initWithFrame:CGRectMake( 20*kWidthValue, getRectNavAndStatusHight + 20*kWidthValue, FC_SCREEN_WIDTH - 40*kWidthValue, 100*kWidthValue)];
        _labelOne.textColor = [UIColor blackColor];
        _labelOne.textAlignment = NSTextAlignmentLeft;
        _labelOne.numberOfLines = 0;
        _labelOne.font = [UIFont systemFontOfSize:16.0f*kWidthValue];;
        _labelOne.text = NSLocalizedString(@"chestAbdomen", nil);
    }
    return _labelOne;
}

- (UIImageView *)imageViewOne {
    if (!_imageViewOne) {
        _imageViewOne = [[UIImageView alloc] initWithFrame:CGRectMake(20*kWidthValue, CGRectGetMaxY(self.labelOne.frame) + 20*kWidthValue, FC_SCREEN_WIDTH - 40*kWidthValue, 150*kWidthValue)];
        _imageViewOne.image = [UIImage imageNamed:@"instructOne"];
    }
    return _imageViewOne;
}

- (UIImageView *)imageViewTwo {
    if (!_imageViewTwo) {
        _imageViewTwo = [[UIImageView alloc] initWithFrame:CGRectMake(20*kWidthValue, CGRectGetMaxY(self.labelTwo.frame) + 20*kWidthValue, FC_SCREEN_WIDTH - 40*kWidthValue, 150*kWidthValue)];
        _imageViewTwo.image = [UIImage imageNamed:@"instructTwo"];
    }
    return _imageViewTwo;
}

- (UILabel *)labelTwo {
    if (!_labelTwo) {
        _labelTwo = [[UILabel alloc] initWithFrame:CGRectMake( 20*kWidthValue, CGRectGetMaxY(self.imageViewOne.frame) + 20*kWidthValue, FC_SCREEN_WIDTH - 40*kWidthValue, 60*kWidthValue)];
        _labelTwo.textColor = [UIColor blackColor];
        _labelTwo.textAlignment = NSTextAlignmentLeft;
        _labelTwo.numberOfLines = 0;
        _labelTwo.font = [UIFont systemFontOfSize:16.0f*kWidthValue];
        _labelTwo.text = NSLocalizedString(@"crossFish", nil);
    }
    return _labelTwo;
}

- (UILabel *)labelThree{
    if (!_labelThree) {
        _labelThree = [[UILabel alloc] initWithFrame:CGRectMake( 20*kWidthValue, CGRectGetMaxY(self.imageViewTwo.frame) + 30*kWidthValue, FC_SCREEN_WIDTH - 40*kWidthValue, 20*kWidthValue)];
        _labelThree.textColor = [UIColor blackColor];
        _labelThree.textAlignment = NSTextAlignmentLeft;
        _labelThree.numberOfLines = 0;
        _labelThree.font = [UIFont systemFontOfSize:16.0f*kWidthValue];
        _labelThree.text = NSLocalizedString(@"AfterCompass", nil);
    }
    return _labelThree;
}


/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
